package com.starlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.lop.open.api.sdk.domain.ECAP.CommonQueryOrderApi.commonGetOrderTraceV1.CommonOrderTraceDetail;
import org.springframework.data.domain.Pageable;
import com.starlink.model.domain.SchoolbagOrderReadRecordDO;
import com.starlink.model.request.SchoolbagOrderReadRecordRequest;
import com.starlink.model.vo.SchoolbagOrderReadRecordVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface SchoolbagOrderReadRecordService extends IService<SchoolbagOrderReadRecordDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    SchoolbagOrderReadRecordVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<SchoolbagOrderReadRecordVO> pageQuery(Pageable pageable,SchoolbagOrderReadRecordRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<SchoolbagOrderReadRecordVO> listQuery(SchoolbagOrderReadRecordRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(SchoolbagOrderReadRecordRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(SchoolbagOrderReadRecordRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean deleteDOByIds(String ids);

    boolean createOrderReadRecord(Long schoolbagOrderId);

    List<CommonOrderTraceDetail> traceQuery(SchoolbagOrderReadRecordRequest request);

    Boolean confirm(SchoolbagOrderReadRecordRequest request);

    Boolean withholdingDeposit(SchoolbagOrderReadRecordRequest request);

    Boolean appeal(SchoolbagOrderReadRecordRequest request);
}
